Skip to content

Bugfix: Store created_by when rolling back version#3175

Merged
Dallas98 merged 1 commit into
developfrom
xyq/bugfix_rollback_cannot_edit
Jun 2, 2026
Merged

Bugfix: Store created_by when rolling back version#3175
Dallas98 merged 1 commit into
developfrom
xyq/bugfix_rollback_cannot_edit

Conversation

@xuyaqist

@xuyaqist xuyaqist commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Bugfix: Store created_by when rolling back version

Copilot AI review requested due to automatic review settings June 2, 2026 03:19
@xuyaqist xuyaqist requested review from Dallas98 and WMC001 as code owners June 2, 2026 03:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts agent version publish metadata by ensuring the updated_by audit field is populated at creation time.

Changes:

  • Set updated_by to the publishing user when inserting a new AgentVersion record.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 128 to 132
'status': STATUS_RELEASED,
'is_a2a': publish_as_a2a,
'created_by': user_id,
'updated_by': user_id,
}
@Dallas98 Dallas98 merged commit 9fa4d5c into develop Jun 2, 2026
13 checks passed
@Dallas98 Dallas98 deleted the xyq/bugfix_rollback_cannot_edit branch June 9, 2026 02:55
'status': STATUS_RELEASED,
'is_a2a': publish_as_a2a,
'created_by': user_id,
'updated_by': user_id,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

添加 updated_by 字段到版本发布记录是合理的。但请确认 insert_version 函数是否已支持 updated_by 字段——如果数据库表或 ORM 模型中没有这个列,会导致插入失败。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants